package com.hutao.medical.common.enums;

public enum TreatmentTraceEnum {
	
	INIT_MESSAGE(1, "初始化信息"),
	BIND_PICTURE(2, "绑定图片"),
	ADD_LABEL(3, "添加标签"),
	MEDICAL_RECORD_SCAN(4, "病案扫描"),
	MEDICAL_RECORD_QUALITY_CONTROL(5, "病案质控"),
	MEDICAL_RECORD_AUDIT(6, "病案审核"),
	MEDICAL_RECORD_PUTAWAY(7, "病案上架"),
	MEDICAL_RECORD_PRINT(8, "病案打印");
	
	private Integer value;
	private String desc;
	
	TreatmentTraceEnum(Integer value, String desc) {
		this.value = value;
	    this.desc = desc;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	  public static TreatmentTraceEnum valueOf(int value) {
	        switch (value) {
	            case 1:
	                return INIT_MESSAGE;
	            case 2:
	            	return BIND_PICTURE;
	            case 3:
	            	return ADD_LABEL;
	            case 4:
	            	return MEDICAL_RECORD_SCAN;
	            case 5:
	            	return MEDICAL_RECORD_QUALITY_CONTROL;
	            case 6:
	            	return MEDICAL_RECORD_AUDIT;
	            case 7:
	            	return MEDICAL_RECORD_PUTAWAY;
	            case 8:
	            	return MEDICAL_RECORD_PRINT;
	         
	        }
	        throw new IllegalArgumentException("Cannot create evalue from value: " + value + "!");
	    }
	
	
	
	
	
	
	

}
